package cn.itsource.crm.web.controller;

import cn.itsource.crm.query.EmployeeQuery;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/image")
@CrossOrigin//解决跨域问题
public class imageController {


    /**
     * 图片流响应
     * @return
     */
    @RequestMapping(value = "/getImage/{image}",method = RequestMethod.GET)//批量查询用PATCH
    @ApiOperation(value = "图片流响应",notes = "图片流响应")
    //HTTP响应整体描述
    @ApiResponses({
            //HTTP响应其中1个描述
            @ApiResponse(code = 200,message = "成功"),
            @ApiResponse(code = 500,message = "网络错误，请稍后")
    })
    public void queryPage(@PathVariable String image){
        System.out.println(image);
    }
}
